From: Takao Fujiwara Date: Tue, 8 Mar 2016 13:18:06 +0000 (+0900) Subject: Set VirtualBox USB Tablet to GDK_SOURCE_MOUSE X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~2596 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=7822f59a861abe6a29c15823964c7ea1892c265c;p=gtk%2B3.0.git Set VirtualBox USB Tablet to GDK_SOURCE_MOUSE The virtual host assigns the name of the mouse device to "VirtualBox USB Tablet" in VirtualBox and we'd use that device as mouse. If not, GtkTooltip is not enabled. https://bugzilla.gnome.org/show_bug.cgi?id=763017 --- diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index b314d43804..ad6babe883 100644 --- a/gdk/x11/gdkdevicemanager-xi2.c +++ b/gdk/x11/gdkdevicemanager-xi2.c @@ -432,6 +432,7 @@ create_device (GdkDeviceManager *device_manager, !strstr (tmp_name, "pointer") && !strstr (tmp_name, "qemu usb tablet") && !strstr (tmp_name, "spice vdagent tablet") && + !strstr (tmp_name, "virtualbox usb tablet") && has_abs_axes (display, dev->classes, dev->num_classes)) input_source = GDK_SOURCE_TOUCHSCREEN; else